package com.org.eventcenter.eventcenter.dao;

import com.org.eventcenter.eventcenter.dto.DataFuseDto;
import com.org.eventcenter.eventcenter.entity.DataFuseEntity;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author Evil Lee
 * @创建时间 2020/4/22
 * @描述
 */
public interface DataFuseDao extends Mapper<DataFuseEntity> {
    @Select("SELECT a.id,a.req_type,a.template_type,a.req_pram,a.req_template_id,a.is_in_use,a.is_need_cache,b.req_template FROM event_data_fuse a, event_template b WHERE a.req_template_id = b.id and a.template_type = #{type} and a.is_in_use =1")
    List<DataFuseDto> queryAll(String type);
}
